package edu.cuit.zhuyimeng.uaa.exception;

import edu.cuit.zhuyimeng.framework.common.result.CodeWrapper;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 *  认证异常
 */
@NoArgsConstructor
@Getter
public class AuthenticationException extends RuntimeException{

    private CodeWrapper code;

    public AuthenticationException(String msg) {
        super(msg);
    }

    public AuthenticationException(String msg,CodeWrapper code) {
        super(msg);
        this.code = code;
    }

}
